<template>
  <router-link :to="$props.to">
    <slot />
  </router-link>
</template>

<script lang="ts">
import { defineComponent, onMounted } from 'vue';

export default defineComponent({
  name: 'DMenuLink',
  props: {
    to: {
      type: [String, Object],
      default: () => {
        return '';
      }
    }
  },
  setup(prop, { emit }) {
    onMounted(() => {
      console.log('>>>>>>>>>>', prop.to);
    });
  }
});
</script>

<style scoped></style>
